<%--<%@page import="com.lynn.salary.entity.EmpSalaryItem"%>
<%@page import="com.opensymphony.xwork2.util.ValueStack"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String submitUrl = "";
	String inputValue = "";
	ValueStack vs = (ValueStack) request
			.getAttribute("struts.valueStack");
	EmpSalaryItem editSaleryItem = (EmpSalaryItem) vs
			.findValue("empSalaryItem");
	String flag = vs.findString("flag");
	if (flag != null && flag.equals("showEditPage")) {
		submitUrl = basePath
				+ "empSalaryItem!edit.do?flag=update&empSalaryItem.id="
				+ editSaleryItem.getId();

	} else {
		submitUrl = basePath + "empSalaryItem!save.do";

	}
%>
<div class="pageContent">
	<form method="post" action="<%=submitUrl%>"
		class="pageForm required-validate"
		onsubmit="return validateCallback(this, dialogAjaxDone);">

		<div class="pageFormContent" layoutH="56">
			<p>
				<label>
					工资项名
				</label>
				<input name="empSalaryItem.name" class="required" type="text"
					size="30" value="<s:property value='empSalaryItem.name' />"
					alt="请输入工资项名称"/ >
			</p>
			<p>
				<label>
					项目金额
				</label>
				<input name="empSalaryItem.amount" type="text" size="30"
					value="<s:property value='empSalaryItem.amount' />" />
			</p>
			<p>
				<label>
					发放制度
				</label>
				<s:select list="#{'按月发放':'按月发放','按季度发放':'按季度发放','
年终发放':'年终发放'}"
					listKey="key" listValue="value" name="empSalaryItem.sRule"
					value="employee.sRule"></s:select>
			</p>
			<p>
				<label>
					加/扣
				</label>
				<s:select list="#{'加':'加','扣':'扣'}" listKey="key" listValue="value"
					name="empSalaryItem.plusOrDec" value="employee.plusOrDec"></s:select>
			</p>
			<p>
				<label>
					关联考勤类型
				</label>
				<s:select name="empSalaryItem.releateType" list="attendancetype"
					listKey="id" listValue="name" headerKey="" headerValue="-"></s:select>

			</p>
			<p>
				<label>
					是否可见
				</label>
				<s:select list="#{'可见':'可见','不可见':'不可见'}" listKey="key"
					listValue="value" name="empSalaryItem.showOnGui"
					value="empSalaryItem.showOnGui"></s:select>


			</p>
		</div>


		<div class="formBar">
			<ul>
				<li>
					<div class="buttonActive">
						<div class="buttonContent">
							<button type="submit">
								保存
							</button>
						</div>
					</div>
				</li>
				<li>
					<div class="button">
						<div class="buttonContent">
							<button type="button" class="close">
								取消
							</button>
						</div>
					</div>
				</li>
			</ul>
		</div>
	</form>
</div>
--%>